package com.onlyphoto.onlymall.bean.response

import com.onlyphoto.onlymall.base.BaseEntity

/**
 * Created by gaochujia on 2019-08-20.
 */
data class GoodsDetailsBean(
        var id: Int,
        var date_tm: Long,
        var type: Int,
        var cat1: Int,
        var cat2: Int,
        var title: String,
        var price_org: Double,
        var price_now: Double,
        var freight_set: Int,
        var freight_add: Int,
        var gift_set: Int,
        var sale_num: Int,
        var read_num: Int,
        var col_num: Int,
        var allow_cart: Int,
        var allow_user_img: Int,                     //商品定制，1：定制商品  2、非定制商品
        var attribute_set: Int,                      //单双属性判断  1：款式（单） 2：颜色和尺寸（双）
        var style_title: String,
        var color_title: String,
        var size_title: String,
        var total_goods_num: Int,
        var style_arr: ArrayList<Style>,
        var color_arr: ArrayList<Color>,
        var size_arr: Map<Int, ArrayList<Size>>,
        var front_img_arr: ArrayList<String>,
        var details_img_arr: ArrayList<String>,
        var gift_arr: Gift
): BaseEntity() {
    data class Style(
            var name: String,
            var img_url: String,
            var goods_num: Int,
            var isSelected: Boolean
    ): BaseEntity()
    data class Color(
            var id: Int,
            var name: String,
            var img_url: String,
            var isSelected: Boolean
    ): BaseEntity()
    data class Size(
            var name: String,
            var goods_num: Int,
            var isSelected: Boolean
    ): BaseEntity()
    data class Gift(
            var gift_goods_id: Long,
            var style: String,
            var color: String,
            var size: String,
            var title: String,
            var front_img: String
    ): BaseEntity()
}